import service from '@/utils/request'

// @Tags MasterBOMAccessorySpec
// @Summary 创建MasterBOM-士啤配件主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMAccessorySpec true "创建MasterBOM-士啤配件主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMAccessorySpec/createMasterBOMAccessorySpec [post]
export const createMasterBOMAccessorySpec = (data) => {
  return service({
    url: '/masterBOMAccessorySpec/createMasterBOMAccessorySpec',
    method: 'post',
    data
  })
}

// @Tags MasterBOMAccessorySpec
// @Summary 删除MasterBOM-士啤配件主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMAccessorySpec true "删除MasterBOM-士啤配件主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMAccessorySpec/deleteMasterBOMAccessorySpec [delete]
export const deleteMasterBOMAccessorySpec = (params) => {
  return service({
    url: '/masterBOMAccessorySpec/deleteMasterBOMAccessorySpec',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMAccessorySpec
// @Summary 批量删除MasterBOM-士啤配件主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-士啤配件主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMAccessorySpec/deleteMasterBOMAccessorySpec [delete]
export const deleteMasterBOMAccessorySpecByIds = (params) => {
  return service({
    url: '/masterBOMAccessorySpec/deleteMasterBOMAccessorySpecByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMAccessorySpec
// @Summary 更新MasterBOM-士啤配件主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMAccessorySpec true "更新MasterBOM-士啤配件主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMAccessorySpec/updateMasterBOMAccessorySpec [put]
export const updateMasterBOMAccessorySpec = (data) => {
  return service({
    url: '/masterBOMAccessorySpec/updateMasterBOMAccessorySpec',
    method: 'put',
    data
  })
}

// @Tags MasterBOMAccessorySpec
// @Summary 用id查询MasterBOM-士啤配件主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMAccessorySpec true "用id查询MasterBOM-士啤配件主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMAccessorySpec/findMasterBOMAccessorySpec [get]
export const findMasterBOMAccessorySpec = (params) => {
  return service({
    url: '/masterBOMAccessorySpec/findMasterBOMAccessorySpec',
    method: 'get',
    params
  })
}

// @Tags MasterBOMAccessorySpec
// @Summary 分页获取MasterBOM-士啤配件主档列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-士啤配件主档列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMAccessorySpec/getMasterBOMAccessorySpecList [get]
export const getMasterBOMAccessorySpecList = (params) => {
  return service({
    url: '/masterBOMAccessorySpec/getMasterBOMAccessorySpecList',
    method: 'get',
    params
  })
}
